<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        img {
            position: absolute;
        }
    </style>
</head>

<body>
    <img src="images/bpic_1.gif" id="ts">
    <script>
        var ts = document.getElementById("ts");
        document.onclick = function (e) {
            ts.style.left = e.clientX + "px";
            ts.style.top = e.clientY + "px";
        }
    </script>
</body>

</html>